<script type="text/javascript">
							function changeitem(selectObj){  
								var id=selectObj.value;
								var dataString =  id;
						    		$.ajax({
						            url: "<?php echo base_url().'index.php/admincp/ajaxtypetocate/';?>"+ dataString ,
						            type:'POST', 
						            data: dataString, 
						            success: function(output_string){ 
						                    $(".resultajax").html(output_string);
						                },
						                error: function(){
						                    alert('null');
						                  }  
						            });  
								}
</script>
<div class="box grid_12">
	<div class="bxStep gs6 step4-ac">
		<ul>
			<li class="step1"><a href="">Khai báo tên</a>
			</li>
			<li class="step2"><a href="">Chọn loại ứng dụng</a>
			</li>
			<li class="step3"><a href="">Tải file lên</a>
			</li>
			<li class="step4 selected"><a href="">Thông tin mô tả </a>
			</li>
			<li class="step5"><span>Chọn thiết bị &amp; Giá</span>
			</li>
			<li class="step6"><span>Liên hệ</span>
			</li>
		</ul>
	</div>
	<div class="box-content">
		<div class="block-fluid">
			<?php echo form_open_multipart('developer/add_app_step_4/'.$id); ?>
			<fieldset>
				<div class="form-row">

					<div class="form-label">Loại</div>
					<div class="form-item">
						<?php if($alltype <> null):?>
						<select name="typeid" id="typeid" onchange="changeitem(this);">
							<option value="0" selected="selected">------------</option>
							<?php foreach($alltype as $type):?>
							<option value="<?php echo $type->id;?>">
								<?php echo $type->nametype;?>
							</option>
							<?php endforeach;?>
						</select>
						<?php endif;?>
					</div>
				</div>
				<div class="form-row">
					<div class="form-label">Danh mục</div>
					<div class="form-item">
						<span class="resultajax"> </span>
					</div>
				</div>
				<div class="form-row">
					<div class="form-label">Giới thiệu</div>
					<div class="form-item">
						<textarea id="wysiwyg" name="description"
							style="height: 100px; width: 100%;"></textarea>
					</div>

				</div>
			</fieldset>
			<input type="submit" class="button green" width="20px" name="step-4"
				value="Tiếp theo" />

		</div>
	</div>
</div>
